﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="game.aspx.cs" Inherits="game" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script src="js/crafty.js" type="text/javascript"></script>
<script src="js/game.js" type="text/javascript"></script>
<head runat="server">
    <title>Maze Game Demo</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="heightTxtBox" runat="server">20</asp:TextBox>
        <asp:Label ID="Label1" runat="server" Text="Height"></asp:Label>
    </div>
    <p>
        <asp:TextBox ID="widthTxtBox" runat="server">20</asp:TextBox>
        Width</p>
    <p>
        <asp:Button ID="gameStartButton" runat="server" OnClick="gameStartButton_Click" 
            Text="Make Maze"/>
    </p>
    <asp:TextBox ID="mazeJsonTxtBox" runat="server" BorderColor="#FF66CC" Height="213px"
        Width="580px" Wrap="True" TextMode="MultiLine"></asp:TextBox>
    <asp:Button ID="Button1" runat="server" Text="StartGame" OnClientClick="GameMain();"/>
    <script type="text/javascript">
        GameMain('<%=mazeDataJson%>','<%=heightTxtBox.Text %>','<%=widthTxtBox.Text %>');
    </script>
    </form>
</body>
</html>
